package com.zimmur.app.mocolink.background.common;

public enum StatusCodeEnum {
	//app请求返回码 100***拦截器返回码
	CODE000000("000000","处理成功"),
	CODE100000("100000","处理失败"),
	CODE100001("100001","系统异常"),
	CODE100200("100200","游客身份需要登录才可操作"),
	CODE100201("100201","登录过期"),
	CODE100401("100401","签名校验失败"),
	CODE100402("100402","请求已失效"),
	CODE100403("100403","公钥已过期"),
	CODE100404("100404","请求头参数不全"),
	CODE100405("100405","Token验证失败,用户登录过期"),
	//用户登录相关返回码
	CODE200200("200200","登录成功,设备更换"),
	CODE200202("200202","用户默认登录失败，返回游客信息"),
	CODE200401("200401","账号不存在"),
	CODE200402("200402","密码不正确"),
	CODE200403("200403","该账号已被限制登录"),
	//注册相关
	CODE201401("201401","手机号码已注册"),
	CODE201402("201402","该昵称已被使用"),
	CODE201403("200403","验证码错误，请重新获取验证码"),
	CODE201404("200404","请补全注册信息"),
	//发送验证码
	CODE202401("202401","该号码发送次数过多，已被限制"),
	CODE202402("202402","请输入正确的手机号"),
	//修改密码
	CODE203401("203401","账户不存在"),
	CODE203402("203402","验证码错误"),
	CODE203403("203403","原密码错误"),
	
	CODE400401("400401","话题不存在"),
	
	CODE410401("410401","请选择收货地址"),
	CODE410402("410402","请选择要购买的商品"),
	CODE410403("410403","商品库存不足"),
	CODE410404("410404","订单数据异常，请重新下单"),
	CODE410405("410405","订单不存在"),
	CODE410406("410406","订单签收失败"),
	
	CODE410411("410411","该订单不能申请售后"),
	CODE410412("410412","创建售后单失败，请重新申请"),
	
	CODE430401("430401","该商品已经评价过了"),
	CODE430402("430402","组货商品不存在"),
	CODE430403("430403","该订单已无法评论"),
	
	CODE440401("440401","无已保存的地址"),

	
	CODE500401("500401","购物车已存在该商品"),
	CODE500402("500402","未选择商品"),
	CODE500403("500403","购物车已存在该组货商品"),
	
	;
	private final String code;
	private final String msg;
	
	private StatusCodeEnum(String code,String msg){
		this.code=code;
		this.msg=msg;
	}

	public String getCode() {
		return code;
	}

	public String getMsg() {
		return msg;
	}
	
	public static void main(String[] args) {
		StatusCodeEnum enum1 = StatusCodeEnum.CODE000000;
		System.out.println(enum1.getCode() + " "+ enum1.getMsg());
	}
}
